package com.elinkway.infinitemovies.http.parser;

import com.elinkway.infinitemovies.bean.UpLoadLocalStreamBean;

import org.json.JSONObject;

/**
 * Created by wangyemin on 2015/12/14.
 */
public class UpLoadLocalStreamBeanParser extends LVideoMobileParser<UpLoadLocalStreamBean> {
    private static String STATUS = "status";
    private static String CODE = "200";

    @Override
    public UpLoadLocalStreamBean parse(JSONObject data) throws Exception {
        UpLoadLocalStreamBean upLoadLocalStreamBean = null;
        if (null != data && data.has(STATUS) && CODE.equalsIgnoreCase(data.getString(STATUS))) {
            upLoadLocalStreamBean = new UpLoadLocalStreamBean();
        }
        return upLoadLocalStreamBean;
    }
}
